package com.heima.behavior.feign;


import com.heima.model.behavior.dtos.ArticleUserInfoDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * App文章
 */
@FeignClient("leadnews-behavior")
public interface BehaviorFeign {



    /**
     * 查看文章是否点赞和查看文章 不喜欢/取消不喜欢 状态
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/islikeAnd/isunlike")
    public Map<String,Boolean> islikeAndisunlike(@RequestBody ArticleUserInfoDto dto);
}
